package com.tianqu.tms.www.cardect.action;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.tianqu.tms.core.base.Logger;
import com.tianqu.tms.core.base.TmsAction;
import com.tianqu.tms.core.base.UserContext;
import com.tianqu.tms.core.util.TmsConstants;
/**
 * 待检测（人工）首页tab页Action
 * 
 * 2013年11月19日修改
 * 
 * 修改内容：加入查询条件，将首页tab去掉
 * 
 * @author tianshifu
 *
 */
public class CarWDPersonTopDispatchAction extends TmsAction {
	private Logger logger = Logger.getLogger(CarWDPersonTopDispatchAction.class);//log

	@Override
	protected ActionForward doAction(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response,
			UserContext uc) throws Exception {
		logger.debug(this.getClass().getName() + "#execute was called.");	

		//直接一个车辆ID搜索条件
		//去掉缓存
		if(uc.getAttribute("inputForm")!=null)
		{
			uc.removeAttribute("inputForm");
		}

		logger.debug(this.getClass().getName() + "#doAction was completed.");
		return mapping.findForward(TmsConstants.SUCCESS);
	}

}
